package com.site.wisdom_construction.service.trainingCheckModule;

import com.site.wisdom_construction.dao.trainingCheckModule.TrainingCoursesDao;
import com.site.wisdom_construction.entity.trainingCheckModule.TrainingCourses;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/1/17
 * @Description
 */
@Service
public class TrainingCoursesService implements TrainingCoursesDao {
    @Autowired
    private TrainingCoursesDao trainingCoursesDao;

    @Override
    public int insertTrainingCourses(Map map) {
        return trainingCoursesDao.insertTrainingCourses(map);
    }

    @Override
    public int deleteTrainingCourses(Map map) {
        return trainingCoursesDao.deleteTrainingCourses(map);
    }

    @Override
    public int updateTrainingCourses(Map map) {
        return trainingCoursesDao.updateTrainingCourses(map);
    }

    @Override
    public List<TrainingCourses> findTrainingCoursesByPage(Map map) {
        return trainingCoursesDao.findTrainingCoursesByPage(map);
    }

    @Override
    public long Total(Map map) {
        return trainingCoursesDao.Total(map);
    }

    @Override
    public Integer countTrainingCourses(Map map) {
        return trainingCoursesDao.countTrainingCourses(map);
    }
}
